﻿<%@ Control Language="C#" 
    Inherits="System.Web.Mvc.ViewUserControl<Bookkeeping.Mvc.Models.Budget.PostViewModel>" %>
        <tr class="<%=Model.RowCssClass %>">
            <td scope="row" class="postDescriptionCell">
                <%=Html.ActionLink(Html.Encode(Model.Name), "List", new { year = Model.Year, month = Model.Month, selectedId = Model.Id }) %>
            </td>
            <td class="postAmountCell <%=Model.AmountCssClass %>"><%=Html.Encode(Model.AmountString) %></td>
            <td class="postCommentCell"><%=Html.Encode(Model.Comment) %></td>
            <td class="postActionsCell">
                <a href="<%=Url.Action("Edit", "BudgetPost", new { id = Model.Id }) %>">
                    <img src="<%=Url.Content("~/Content/Images/edit.png") %>" alt="Edit"/>
                </a>
                <a href="<%=Url.Action("Delete", "BudgetPost", new { id = Model.Id }) %>">
                    <img src="<%=Url.Content("~/Content/Images/delete.png") %>" alt="Delete"/>
                </a>
            </td>
            <td class="postTagsCell"><%=Html.Encode(Model.Tags) %></td>
        </tr>